# -*- coding: utf-8 -*-

import os
import sys
import shutil

path = r"E:\现状图\左中\原图"
li = os.walk(path)
for pa,dir,file in li:
    count = 1
    for each in file:
        # print(type("蒙"))
        # print(type(each))
        if "蒙" in each and each.endswith(".WP"):
            print(pa,dir,each)
            print(os.path.split(pa))
            shutil.copy(pa+os.sep+each,r"E:\新现状图\科尔沁左翼中旗"+os.sep+os.path.split(pa)[1]+"蒙文"+str(count)+".WP")
            count += 1
#

path = r"E:\现状图\扎鲁特\原图"
li = os.walk(path)
for pa,dir,file in li:

    count = 1
    for each in file:
        # print(type("蒙"))
        # print(type(each))
        if  "蒙" in each and each.endswith(".WP"):
            print(pa,dir,each)
            print(os.path.split(pa))
            shutil.copy(pa+os.sep+each,r"E:\新现状图\扎鲁特旗"+os.sep+os.path.split(pa)[1]+"蒙文"+str(count)+".WP")
            count += 1
